package com.rede.didiok.user.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rede.didiok.common.dto.user.SignInRecordDto;
import com.rede.didiok.user.entity.SignInRecordEntity;

/**
 * 用户签到表
 * 
 * @author Rede
 * @email didiok@foxmail.com
 * @date 2023-08-07 18:21:17
 */
@Mapper
public interface SignInRecordDao extends BaseMapper<SignInRecordEntity> {
    /**
     * 查询用户当月签到情况
     *
     * @param userUid 用户Uid
     * @param dateKey 时间   as    2021-10
     * @return
     */
    List<SignInRecordDto> userSignRecordList(@Param("userUid") String userUid, @Param("dateKey") String dateKey);

    /**
     * 查询连续签到天数
     *
     * @param userUid
     * @param day
     * @return
     */
    SignInRecordDto querySignContinuousDays(@Param("userUid") String userUid, @Param("day") String day);

}
